package com.ahs.region.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ahs.region.mapper.UserMapper;
import com.ahs.region.model.User;
import com.ahs.region.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserMapper regionMapper;

	@Override
	public List<User> findAll() {
		List<User> list = this.regionMapper.findAll();
		return list;
	}

	@Override
	public User findByCode(String id) throws Exception {
		User ut = new User();
		ut.setId(id);
		return this.regionMapper.findByCode(ut);
	}
	
	
	
}
